﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SaiLing.Domain.Persistence.Relational;

namespace SaiLing.SingleSignOn.Domain.Entities.System
{
    public class Permission : IEntity
    {
        public Permission()
        {
        }
        public Permission(Permission p)
        {
            this.RelationId = p.RelationId;
            this.ActionId = p.ActionId;
        }
        /// <summary>
        /// 来自与角色或者部门的主键
        /// </summary>
        public Guid RelationId { get; set; }

        public Guid ActionId { get; set; }

        public virtual Module Module { get; set; }

        public virtual ModuleAction Action { get; set; }
    }
}
